package com.heima.pojo.dto;

import lombok.Data;

@Data
public class VmPageQureyDTO {

    //售货机状态(0:未投放;1-运营;3-撤机)
    private Integer status;
    //设备编号
    private String innerCode;
    //页码
    private int pageIndex;
    //每页显示记录数
    private int pageSize;


    public void check() {
        if (pageIndex <= 0) {
            pageIndex = 1;
        }
        if (pageSize <= 0 || pageSize > 100) {
            pageSize = 10;
        }
    }
}
